package com.aaa.book_mall.entity;

import java.io.Serializable;
import java.util.List;

/**
* @author Lei Chu
* @Date 2020/10/16 18:04
*/
public class Menu implements Serializable {

  private Integer mid;
  private String mname;
  private String mcode;
  private String murl;
  private Integer mpid;
  private String micon;
  //父菜单中有子菜单
  private List<Menu> sonMenu;

  public Integer getMid() {
    return mid;
  }

  public void setMid(Integer mid) {
    this.mid = mid;
  }

  public String getMname() {
    return mname;
  }

  public void setMname(String mname) {
    this.mname = mname;
  }

  public String getMcode() {
    return mcode;
  }

  public void setMcode(String mcode) {
    this.mcode = mcode;
  }

  public String getMurl() {
    return murl;
  }

  public void setMurl(String murl) {
    this.murl = murl;
  }

  public Integer getMpid() {
    return mpid;
  }

  public void setMpid(Integer mpid) {
    this.mpid = mpid;
  }

  public String getMicon() {
    return micon;
  }

  public void setMicon(String micon) {
    this.micon = micon;
  }

  public List<Menu> getSonMenu() {
    return sonMenu;
  }

  public void setSonMenu(List<Menu> sonMenu) {
    this.sonMenu = sonMenu;
  }

  public Menu(Integer mid, String mname, String murl, List<Menu> sonMenu) {
    this.mid = mid;
    this.mname = mname;
    this.murl = murl;
    this.sonMenu = sonMenu;
  }

  public Menu(Integer mid, String mname, String murl) {
    this.mid = mid;
    this.mname = mname;
    this.murl = murl;
  }

  @Override
  public String toString() {
    return "Menu{" +
            "mid=" + mid +
            ", mname='" + mname + '\'' +
            ", mcode='" + mcode + '\'' +
            ", murl='" + murl + '\'' +
            ", mpid=" + mpid +
            ", micon='" + micon + '\'' +
            ", sonMenu=" + sonMenu +
            '}';
  }
}
